//
//  UIButton+extension.m
//  MySinaWeiboProjectForOC
//
//  Created by apple on 2016/11/13.
//  Copyright © 2016年 WangChen. All rights reserved.
//

#import "UIButton+extension.h"

@implementation UIButton (extension)

- (instancetype)initWithTitle:(NSString *)title color:(UIColor*)color imageName:(NSString *)imageName
{
    self = [self init];
    if (self) {
        
        [self setTitle:title forState:UIControlStateNormal];
        [self setTitleColor:color forState:UIControlStateNormal];
        [self setBackgroundImage:[UIImage imageNamed:imageName] forState:UIControlStateNormal];
        
    }
    return self;
}


@end
